<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>图标列表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <!--import引入-->
    <link rel="import" href="icon-picker.html" id="html1"/>
    <link rel="import" href="icon-builtIn.html" id="html2"/>
    <link rel="stylesheet" th:href="@{/layuimini/lib/layui-v2.6.3/css/layui.css}" media="all">
    <link rel="stylesheet" th:href="@{/layuimini/css/public.css}" media="all">
</head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">
        <fieldset class="table-search-fieldset">
            <form class="layui-form layui-form-pane" lay-filter="" action="">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">图标库</label>
                        <div class="layui-input-inline">
                            <select lay-filter="select-filter">
                                <option value="">请选择</option>
                                <option value="0" selected>Layui-IconPicker</option>
                                <option value="1">Layui-内置</option>
                            </select>
                        </div>
                    </div>
                </div>
            </form>
        </fieldset>
        <div>
            <iframe id="implantIframe" th:src="@{/develop/component/iconPickerList}" style="width:100%;height:100%;position:absolute;" frameborder="0"></iframe>
        </div>
    </div>
</div>
<script th:src="@{/layuimini/lib/layui-v2.6.3/layui.js}" charset="UTF-8"></script>
<script type="text/javascript" th:inline="javascript">
    layui.use(function () {
        let $ = layui.jquery,
            form = layui.form;

        let ctxPath = /*[[@{/}]]*/'';

        form.on('select(select-filter)', function(data){
            if('0' === data.value){
                $("#implantIframe").attr('src',ctxPath+"develop/component/iconPickerList");
            }else if('1' === data.value){
                $("#implantIframe").attr('src',ctxPath+"develop/component/iconBuiltInList");
            }
        });
    });

</script>
</body>
</html>